home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dirut
/
twoutils.zip
/
DELETE.DOC
< prev
next >
Wrap
Text File
|
1989-10-14
|
5KB
|
100 lines
DELETE - File Deletion Utility
--------------------------------
Syntax: DELETE <FILESPEC>
Options: /ATTRIBUTES=<ATTRIBUTE-CODES>
/CONFIRM
/EXCLUDE=<FILESPEC>
/LOG
/VERSION
/ZAP
Remarks: DELETE deletes the files matching the specified path. The path
may contain wild cards. If the wild cards are full (either *
or *.*), a confirmation will be required before the deletion is
carried out, unless /NOCONFIRM is explicitly specified.
The file specification is matched with files according to the
values specified with the /ATTRIBUTES and /EXCLUDE options. If
a attribute list is given, only files with the specified
attributes will be included in the search. If an /EXCLUDE
clause is given, the files matching the given specification will
be omited from the deletion.
Files which are read-only will not be deleted. If the /CONFIRM
option is specified, the read-only attribute will be indicated
and the file will be deleted should the user so request.
If any wild card character is specified in the filename, a line
specifying the number of files deleted and their total size will
be displayed subsequent to the deletion.
Wild Cards: The wild card specification used with DELETE is different to that
used by DOS. DOS does not match wild card specifications
correctly. DELETE will match any wild card specification
exactly. The following are examples:
*s* Matches any filename including an 'S' character.
?*s*.tmp Matches any file with type 'TMP' whose filename
contains an 'S' after the first character.
*tmp*.* Matches any file with 'TMP' in the name.
*.* Matches any file with a name and extension.
* Matches all filenames regardless of extension.
Note the difference of '*' and '*.*'. This implies that the
'.' character is treated exactly as any other character.
DOS would fails with all of the first three examples, by matching
ALL filenames with the specifications given! Dangerous!
Options: /ATTRIBUTES=<ATTRIBUTE-CODES>
This option limits the search to the files with the matching
attributes. The attributes are:
A : Archive bit set (file changed since backup)
H : Hidden file (not seen by DOS)
R : Read-only
S : System file
Files either System or Hidden will not normally be visible to
DELETE (as DOS), but by specifying the attributes explicitly
they become visible.
/CONFIRM
Requests user confirmation of each file before deletion takes
place. The filename is given, and the user must answer with
one of the following:
A : ALL. Delete this file and all subsequent ones
N : No. Do not delete this file (default)
Q : Quit. Stop now, files already deleted are gone.
Y : Yes. Delete file normally.
If a full wild card specification has been given (* or *.*)
without /CONFIRM, the message 'Are you sure?' will be displayed
for confirmation of the pending deletion. If /CONFIRM is
specified this message will not be displayed as the files have
individual confirmation. If /NOCONFIRM is explicitly given
the 'Are you sure?' message is supressed; the deletion going
ahead with no confirmation.
/EXCLUDE=<FILESPEC>
Excludes matching files from the deletion. Wild card matching
follows the rules indicated above under 'Wild Cards'.
/LOG
Displays the filename and size of each file as it is deleted.
If /CONFIRM is specified the /LOG option will be ignored as
long as the user explicitly confirms the deletion. If the 'A'
(All) option is used during confirmation, the /LOG option will
take effect for the remaining files.
/VERSION
Displays the version number of the DELETE utility.
/ZAP
Erases the file physically by clearing the old data. This is a
security measure to ensure that a file may not be restored. Use
with caution!